package com.dalin.system.controller;

import com.dalin.framework.BaseController;
import com.dalin.framework.vos.ResResult;
import com.dalin.framework.util.StringUtil;
import com.dalin.system.pojo.request.DbManagementRequest;
import com.dalin.system.service.DbManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/******************************************************************************
 * @Desc    :
 * @author  : najianlin
 * @date    : 2024-11-23 16:13
 * @version : 1.0
 *****************************************************************************/
@RestController
@RequestMapping("/generateCode/generate")
@CrossOrigin(origins = "*")
public class GenerateCodeController extends BaseController {
    @Autowired
    private DbManagementService dbManagementService;

       @PostMapping("/listPage")
    public ResResult listPageDbManagements(@RequestBody DbManagementRequest req) throws Exception {
        log.info("分页查询数据库管理信息 by params===");
        StringUtil.printValues(req);
        return dbManagementService.listPageDbManagements(req);
    }
}